﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Security.Cryptography;

namespace ComputeSHA_1
{
    class ComputeSha1
    {
        static void Main(string[] args)
        {
            string input = @"D:\az\Telerik\lectures\01. Introduction-to-Programming.pptx";
            FileStream inputFile = new FileStream(input,FileMode.Open,FileAccess.Read);
            var crypt = SHA1.Create();
            byte[] hashCode = crypt.ComputeHash(inputFile);

            foreach (var bytes in hashCode) 
            {
                Console.WriteLine(bytes);
            }
            
        }
    }
}
